Fix a memory leak. Patch by Christian Persch.
authorMatthias Clasen <matthiasc@src.gnome.org>
Thu, 3 Jul 2008 22:46:00 +0000 (22:46 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Thu, 3 Jul 2008 22:46:00 +0000 (22:46 +0000)
        * gtk/gtkfilesystem.c (get_volumes_list): Fix a memory leak.
        Patch by Christian Persch.

svn path=/trunk/; revision=20752

ChangeLog
gtk/gtkfilesystem.c

index 2b9cb36956ff3bce6fbd36fe5974843a8065acf1..e4bf0f617866a2c7d1f340c8aac85e3e4c63f66e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-07-03  Matthias Clasen  <mclasen@redhat.com>
+
+       Bug 540612 – mem leak in filechooser
+
+       * gtk/gtkfilesystem.c (get_volumes_list): Fix a memory leak.
+       Patch by Christian Persch.
+
 2008-07-04  Tor Lillqvist  <tml@novell.com>
 
        Bug 540861 - invalid UTF-8 in input device name
index 83a8b2c7c2b4fc7a9e921137a62f25e9942e75bf..f4006f5265572fd01aa803eccc41c93a2207f2e2 100644 (file)
@@ -418,6 +418,8 @@ get_volumes_list (GtkFileSystem *file_system)
 
              g_object_unref (volume);
             }
+  
+           g_list_free (volumes);
         }
       else if (g_drive_is_media_removable (drive) && !g_drive_is_media_check_automatic (drive))
        {